package com.crm.service.cluePoolManager;

import com.alibaba.fastjson.JSONObject;
import com.crm.model.entity.cluePoolManager.CluePoolDistribution;
import com.crm.model.vo.cluePoolManager.CluePoolDistributionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author yincuimei
 * @Date 2020/12/24 11:14
 */
public interface CluePoolDistributionDbService {

    /**
     * 添加线索池分配人员名单
     * @param cluePoolDistribution
     * @return
     */
    Boolean addCluePoolDistribution(CluePoolDistribution cluePoolDistribution);

    /**
     * 根据线索池id删除线索池分配人员名单
     * @param cluePoolId
     * @return
     */
    Boolean deleteCluePoolDistributionByCluePoolId(String cluePoolId);

    /**
     * 根据线索池ID查询公司和用户名
     * @param cluePoolId
     * @param deleteStatus
     * @return
     */
    List<CluePoolDistributionVO> selectCluePoolDistributionVOList(@Param("cluePoolId") String cluePoolId,
                                                                  @Param("deleteStatus") Short deleteStatus);
}
